package dexter.net.unit;

import dexter.net.msg.common.ResponseParams;


public class NetResult implements ResponseParams {

	private static final long serialVersionUID = -5458964230763663163L;
	private boolean succ;
	private String info;
	
	public NetResult(boolean succ, String info) {
		this.succ = succ;
		this.info = info;
	}
	
	public boolean isSucc(){
		return succ;
	}
    
	public String getInfo(){
		return info;
	}
    
    public String toString() {
    	String s = "";
    	if (succ) s+= "successful";
    	else s+= "fail";
    	return s+=" -> "+info;
    }

}